package com.gilgamesh.mall.sdk.bean.member;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 用户
 *
 * @author yanm
 * @date 2021/1/7 15:24
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@TableName("t_user")
public class UserEntity {

    private static final long serialVersionUID = -1192508383413534657L;

    /**
     * 主键
     **/
    @TableId
    private Long id;

    /**
     * 昵称
     **/
    private String userName;

    /**
     * 用户id
     **/
    private String userId;

    /**
     * password,系统只存MD5
     **/
    private String password;

    /**
     * 性别
     **/
    private String sex;

    /**
     * 年龄
     **/
    private Integer age;

    /**
     * 手机号
     **/
    private String phoneNumber;

    /**
     * 真是姓名
     **/
    private String name;

    /**
     * 邮箱
     **/
    private String mail;

    /**
     * 权限
     **/
    private Byte identity;

    private Date createTime;

    //邮箱校验码
    @TableField(exist = false)
    private String verifiCode;

    //登陆的账号(邮箱或手机号)
    @TableField(exist = false)
    private String number;

}